package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.TbBookingSpaceReceiptValidatorGroup.*;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.BelongsTos;
import com.cloudlead.common.lang.annotation.Domain;
import org.joda.time.DateTime;
import com.cloudlead.commonData.vo.TbBookingSpaceOrder;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * TbBookingSpaceReceipt is a Codegen vo type
 */
@Label("订舱单回执表")
@BelongsTos(values = {
	@com.cloudlead.common.lang.annotation.BelongsTo(property="tbBookingSpaceOrder", rootField="tbBookingSpaceOrderId")
})
@Domain(domainClassName="com.cloudlead.commonData.entity.ETbBookingSpaceReceipt")
public class TbBookingSpaceReceipt extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13153701490787L;    
    @Label("备注")
    @Size(max=45)
    private String common;

    @Label("创建时间")
    private DateTime createTime;

    @Label("提空凭证")
    @Size(max=45)
    private String emptyBill;

    @Label("删除标记")
    @Size(max=8)
    private String flag;

    @NotNull(groups={Update.class})
    @Label("订舱回执编号")
    @Size(max=24)
    private String id;

    @Label("orderStatus")
    @Size(max=8)
    private String orderStatus;

    @NotNull(groups={Create.class,Update.class})
    @Label("tbBookingSpaceOrderId")
    private TbBookingSpaceOrder tbBookingSpaceOrder;

    @Label("运单号")
    @Size(max=45)
    private String trackingNo;

    public String getCommon() {
        return common;
    }

    public void setCommon(String common) {
        this.common = common;
    }

    public DateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(DateTime createTime) {
        this.createTime = createTime;
    }

    public String getEmptyBill() {
        return emptyBill;
    }

    public void setEmptyBill(String emptyBill) {
        this.emptyBill = emptyBill;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public TbBookingSpaceOrder getTbBookingSpaceOrder() {
        return tbBookingSpaceOrder;
    }

    public void setTbBookingSpaceOrder(TbBookingSpaceOrder tbBookingSpaceOrder) {
        this.tbBookingSpaceOrder = tbBookingSpaceOrder;
    }

    public String getTrackingNo() {
        return trackingNo;
    }

    public void setTrackingNo(String trackingNo) {
        this.trackingNo = trackingNo;
    }

    public String toString() {
         return String.format("TbBookingSpaceReceipt { common : %s,createTime : %s,emptyBill : %s,flag : %s,id : %s,orderStatus : %s,tbBookingSpaceOrder : %s,trackingNo : %s }",common,createTime,emptyBill,flag,id,orderStatus,tbBookingSpaceOrder,trackingNo);
    }

}

